package api

import (
	"dynamic-private/internal/ctl"
	"dynamic-private/pkg/base"
)

// 方法命名与文件名保持一致

func dynamicApi(pre string) {
	rGroup := base.GinEngine.Group(pre + "/dynamic-private")
	{
		//根据用户Id返回动态总数和五条动态
		rGroup.POST("/posts", ctl.QueryPostAndCountByUserId)
		//根据用户id切片返回动态总数和五条动态
		rGroup.POST("/posts/list", ctl.QueryPostAndCountByUserIds)
		//根据动态ID返回动态详情
		rGroup.POST("/posts/detail", ctl.QueryPostDetailByPostId)
		//根据用户ID返回动态总数和所用动态
		//rGroup.POST("/posts/all", ctl.QueryAllPostAndCountByUserId)
	}

}
